/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package azhar.com;

/**
 *
 * @author Al-Insan
 */
public class Messages {

    private String number;
    private String text;

    public Messages(String number, String text) {
        this.number = number;
        this.text = text;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Messages other = (Messages) obj;
        if ((this.number == null) ? (other.number != null) : !this.number.equals(other.number)) {
            return false;
        }
        if ((this.text == null) ? (other.text != null) : !this.text.equals(other.text)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 41 * hash + (this.number != null ? this.number.hashCode() : 0);
        hash = 41 * hash + (this.text != null ? this.text.hashCode() : 0);
        return hash;
    }
     
}
